package com.aoyy.model;

import java.util.Set;
import java.util.Date;
/**=====================================================================================
 * PO class <code>User</code>
 * @author this author
 * @date 2017-8-05
 * ===================================================================================== */
public class User extends SerializableImpl{
	private static final long serialVersionUID = -5448760053569741582L;
	private Integer userId;
	private String userName;
	private String password;
	private Integer userType;
	private Integer locked;
	private Integer credit;
	private Date lastVisit;
	private String lastIp;
	private Set<BoardManager> boardManagers;
	private Set<SignInLog> signInLogs;
	private Set<Topic> topics;
	private Set<Post> posts;
	
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	public Integer getUserId() {
		return userId;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getUserName() {
		return userName;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setUserType(Integer userType) {
	    this.userType = userType;	
	}
	
	public Integer getUserType() {
		return userType;
	}
	
	public void setLocked(Integer locked) {
		this.locked = locked;
	}
	
	public Integer getLocked() {
		return locked;
	}
	
	public void setCredit(Integer credit) {
		this.credit = credit;
	}
	
	public Integer getCredit() {
		return credit;
	}
	
	public void setLastVisit(Date lastVisit) {
		this.lastVisit = lastVisit;
	}
	
	public Date getLastVisit() {
		return lastVisit;
	}
	
	public void setLastIp(String lastIp) {
		this.lastIp = lastIp;
	}
	
	public String getLastIp() {
		return lastIp;
	}
	
	public void setBoardManagers(Set<BoardManager> boardManagers) {
		this.boardManagers = boardManagers;
	}
	
	public Set<BoardManager> getBoardManagers() {
		return boardManagers;
	}
	
	public void setSignInLogs(Set<SignInLog> signInLogs) {
		this.signInLogs = signInLogs;
	}
	
	public Set<SignInLog> getSignInLogs() {
		return signInLogs;
	}
	
	public void setTopics(Set<Topic> topics) {
		this.topics = topics;
	}
	
	public Set<Topic> getTopics() {
		return topics;
	}
	
	public void setPosts(Set<Post> posts) {
		this.posts = posts;
	}
	
	public Set<Post> getPosts() {
		return posts;
	}
	
}
